<div class="ui-g p-t-20">
  <div class="ui-g-12 p-0">
    <p-tabView (onChange)="onChange($event)" [type]="1" [controlToggle]='true'>
      <p-tabPanel header="基本设置" [type]="1">
        <!--基本信息展示区域-->
        <div [hidden]="editFlag">
          <p-panel headerClass="bg-none" [blocked]="editFlagBlocked" [showScroll]="false">
            <p-header>
              <div class="text-right p-6-0">
                <span class="border-l-1a8fe8 p-l-8 pull-left m-t-8">基础信息</span>
                <button pButton type="button" data-table="info" (click)="update('info')" label="编辑" class="btn-secondary"></button>
              </div>
            </p-header>
            <div class="table-row">
              <div class="table-cell text-right p-l-25 width-120">
                名称：
              </div>
              <div class="table-cell i-h">
                {{templateData.name}}
              </div>
            </div>

            <div class="table-row">
              <div class="table-cell text-right p-l-25 width-120">
                标准施工周期：
              </div>
              <div class="table-cell i-h">
                {{templateData.constructionLimitDays}}
                <span>天</span>
              </div>
            </div>
            <div class="table-row">
              <div class="table-cell text-right p-l-25 width-120">
                施工周期范围：
              </div>
              <div class="table-cell i-h">
                {{templateData.constructionLimitDaysFrom}}
                <span>天</span>
                <span class="p-0-10">~</span>
                {{templateData.constructionLimitDaysTo}}
                <span>天</span>
              </div>
            </div>

            <div class="table-row">
              <div class="table-cell text-right p-l-25 width-120">
                适用面积：
              </div>
              <div class="table-cell i-h">
                {{templateData.useAbleAreaFrom}}
                <span class="m-s">㎡</span>
                <span class="p-0-10">~</span>
                {{templateData.useAbleAreaTo}}
                <span class="m-s">㎡</span>
              </div>
            </div>

            <div class="table-row">
              <div class="table-cell text-right p-l-25 i-h width-120">
                适用报价模板：
              </div>
              <div class="table-cell">
                <div class=" ui-g" style="margin-left:-5px;">
                  <!-- <div class="p-15">
                                        <p-label label='sadasd' [showClose]="false" [active]="true"></p-label>
                                    </div> -->
                  <div class="p-15" *ngFor="let col of templateData.retPriceData">
                    <p-label [label]='col.name' [showClose]="false" [active]="true"></p-label>
                  </div>
                </div>

              </div>
            </div>
            <div class="table-row">
              <div class="table-cell text-right p-l-25 i-h width-120">
                适用组织：
              </div>
              <div class="table-cell">
                <div class=" ui-g" style="margin-left:-5px;">
                  <!-- <div class="p-15">
                                            <p-label label='sadasd' [showClose]="false" [active]="true"></p-label>
                                        </div> -->
                  <div class="p-15" *ngFor="let col of templateData.retOrganizationData">
                    <p-label [label]='col.name' [showClose]="false" [active]="true"></p-label>
                  </div>
                </div>

              </div>
            </div>

            <div class="table-row">
              <div class="table-cell text-right p-l-25 width-120">
                交款模板：
              </div>
              <div class="table-cell i-h">
                {{templateData.payTemplateName}}
              </div>
            </div>

            <div class="table-row">
              <div class="table-cell text-right p-l-25 width-120">
                送货批次：
              </div>
              <div class="table-cell i-h">
                {{templateData.deliveryBatchNo}}
              </div>
            </div>

            <div class="table-row">
              <div class="table-cell text-right p-l-25 width-120">
                状态：
              </div>
              <div class="table-cell i-h">
                {{templateData.isEffect?'启用':'禁用'}}
              </div>
            </div>

          </p-panel>
        </div>
        <!--基本信息展示区域end-->

        <!--基本信息修改区域-->
        <div [hidden]="!editFlag">
          <p-panel headerClass="bg-none" [blocked]="editFlagBlocked">
            <p-header>
              <div class="text-right p-6-0">
                <span class="border-l-1a8fe8 p-l-8 pull-left m-t-8">基础信息</span>
                <button pButton type="button" data-table="info" (click)="infoSave()" label="保存" class="btn btn-secondary"></button>
                <button pButton type="button" data-table="info" (click)="back('info')" label="取消" class="btn btn-secondary"></button>
              </div>
            </p-header>
            <div class="table-row">
              <div class="table-cell text-right p-l-25 p-required width-120">
                名称：
              </div>
              <div class="table-cell ">
                <input pInputText type="text" name="account" required maxlength="25" required size="30" [(ngModel)]="templateDataBack.name"
                  (focus)="nameError =''" placeholder="请输入名称" (blur)="checkNameUnique(templateDataBack.name);" [ngClass]="nameError?'p-input-error':''"
                  class="p-input w-220">
                <p-message *ngIf="nameError" severity="error" [text]="nameError"></p-message>
              </div>
            </div>

            <div class="table-row">
              <div class="table-cell text-right p-l-25 p-required width-120">
                标准施工周期：
              </div>
              <div class="table-cell ">
                <div class="icon-text i-b" data-text="天">
                  <p-spinner name="soinner" size="30" styleClass="p-spinner width-142" [(ngModel)]="templateDataBack.constructionLimitDays"
                    placeholder="请输入名称" placeholder="请输入标准施工周期" (onFocus)="focuLimitDays()" [step]="1" [min]="1" [max]="99999"
                    maxlength="6" (onBlur)="checkLimitDays(templateDataBack.constructionLimitDays);"></p-spinner>
                </div>
                <p-message *ngIf="constructionLimitDaysError" severity="error" [text]="constructionLimitDaysError"></p-message>
              </div>
            </div>

            <div></div>

            <div class="table-row">
              <div class="table-cell text-right p-l-25 p-required width-120 v-middle">
                施工标周期范围：
              </div>
              <div class="table-cell">
                <div>
                  <div class="icon-text i-b pull-left" data-text="天">
                    <p-spinner name="" size="30" styleClass="p-spinner  width-142" [(ngModel)]="templateDataBack.constructionLimitDaysFrom" [step]="1"
                      (onFocus)="constructionLimitError =''" [min]="0" [max]="99999" maxlength="6" placeholder="请输入施工周期范围"
                      (onBlur)="checkDaysFrom(templateDataBack.constructionLimitDaysFrom);"></p-spinner>
                  </div>
                  <div class="p-0-10 pull-left i-h-36">~</div>
                  <div class="icon-text i-b pull-left" data-text="天">
                    <p-spinner name="" size="30" styleClass="p-spinner  width-142" [(ngModel)]="templateDataBack.constructionLimitDaysTo" [step]="1"
                      (onFocus)="constructionLimitError =''" [min]="1" [max]="99999" maxlength="6" placeholder="请输入施工周期范围"
                      (onBlur)="checkDaysTo(templateDataBack.constructionLimitDaysTo);"></p-spinner>
                  </div>
                  <p-message *ngIf="constructionLimitError" severity="error" [text]="constructionLimitError"></p-message>
                </div>
              </div>
            </div>
            <div></div>
            <div class="table-row">
              <div class="table-cell text-right p-l-25 p-required width-120 v-middle">
                适用面积：
              </div>
              <div class="table-cell">
                <div>
                  <div class="icon-text i-b pull-left" data-text="㎡">
                    <p-spinner name="soinner" size="30" styleClass="p-spinner  width-142" [(ngModel)]="templateDataBack.useAbleAreaFrom" [step]="1"
                      (onFocus)="useAbleAreaError =''" [min]="1" [max]="99999" maxlength="6" placeholder="请输入适用面积" (onBlur)="checkAbleArea(templateDataBack.useAbleAreaFrom);"></p-spinner>
                  </div>
                  <div class="p-0-10 pull-left i-h-36">~</div>
                  <div class="icon-text i-b pull-left" data-text="㎡">
                    <p-spinner name="soinner" size="30" styleClass="p-spinner  width-142" [(ngModel)]="templateDataBack.useAbleAreaTo" [step]="1"
                      (onFocus)="useAbleAreaError =''" [min]="1" [max]="99999" maxlength="6" placeholder="请输入适用面积" (onBlur)="checkAbleAreaTo(templateDataBack.useAbleAreaTo);"></p-spinner>
                  </div>
                  <p-message *ngIf="useAbleAreaError" severity="error" [text]="useAbleAreaError"></p-message>
                </div>
              </div>
            </div>
            <div></div>
            <div class="table-row">
              <div class="table-cell text-right p-l-25 p-required width-120">
                适用报价模板：
              </div>
              <div class="table-cell">
                <button pButton type="button" (click)="onClickPrice()" label="选择" class="btn btn-success"></button>
                <p-message *ngIf="priceTemplateError" severity="error" [text]="priceTemplateError"></p-message>
              </div>
            </div>
            <div></div>
            <div class="table-row">
              <div class="table-cell text-right p-l-25 width-120">
              </div>
              <div class="ui-g">
                <div *ngFor="let col of tempData" class="p-15 ">
                  <p-label [label]='col.name' (onClose)="onRemove(col)"></p-label>
                </div>
                <!-- <div class="ui-g-2" *ngFor="let col of tempData" style="width:130px">
                                    <p-label [label]='col.name' (onClose)="onRemove(col)"></p-label>
                                </div> -->
              </div>
            </div>

            <div class="table-row">
              <div class="table-cell text-right p-l-25 p-required">
                适用组织：
              </div>
              <div class="table-cell">
                <button pButton type="button" (click)="selectOrganization();" label="选择" class="btn btn-success"></button>
                <p-message *ngIf="organizationError" severity="error" [text]="organizationError"></p-message>
              </div>
            </div>

            <div class="table-row" *ngIf="organizationOperationtData.length>=1">
              <div class="table-cell text-right p-l-25">
              </div>
              <div class="ui-g">
                <div *ngFor="let organizationList of organizationOperationtData;" class="p-15 ">
                  <p-label [label]='organizationList.name' [showClose]="true" (onClose)="removeOrganization(organizationList)"></p-label>
                </div>
              </div>
            </div>
            <!--选择组织弹窗-->
            <p-dialog header="选择组织" (onHide)="selectedOrganizationTree=[]" [(visible)]="organizationDialog" modal="modal" width="700"
              [responsive]="true">
              <div class="text-center">
                <p-tree [value]="organizationTree" selectionMode="checkbox" childrenAll="true" [(selection)]="selectedOrganizationTree" styleClass='materialTree'>
                </p-tree>
                <div class="inline-block">
                  <div class="table-row">
                    <div class="table-cell text-right p-l-25"></div>
                    <div class="table-cell text-left">
                      <button pButton type="button" (click)="saveSelectedOrganization(organizationEditStageId)" [label]="'保存'" class="btn btn-success m-btn-dialog"></button>
                    </div>
                  </div>
                </div>
              </div>
            </p-dialog>
            <!--选择组织弹窗end-->


            <div class="table-row">
              <div class="table-cell text-right p-l-25 p-required width-120">
                交款模板：
              </div>
              <div class="table-cell ">
                <p-dropdown required name="payTemplateName" styleClass="width-220" [options]="payTemplateNameArr" dataKey="code" placeholder="请选择交款模板"
                  [(ngModel)]="selectedPayTemplateName" (onChange)="payTemplateNameCk()" optionLabel="name"></p-dropdown>
                <p-message *ngIf="payTemplateError" severity="error" [text]="payTemplateError"></p-message>
              </div>
            </div>
            <div class="table-row">
              <div class="table-cell text-right p-l-25 p-required width-120">
                送货批次：
              </div>
              <div class="table-cell">
                <div class="i-b icon-text" data-text="批">
                  <p-spinner name="soinner" size="30" styleClass="p-spinner width-220" [(ngModel)]="templateDataBack.deliveryBatchNo" [step]="1"
                    (onFocus)="deliveryBatchNoError =''" [min]="1" [max]="20" maxlength="2" placeholder="请输入送货批次" (onBlur)="checkBatchNo(templateDataBack.deliveryBatchNo);"></p-spinner>
                </div>
                <p-message *ngIf="deliveryBatchNoError" severity="error" [text]="deliveryBatchNoError"></p-message>
              </div>

            </div>

            <div class="table-row">
              <div class="table-cell text-right p-l-25 p-required width-120">
                状态：
              </div>
              <div class="table-cell ">
                <span style="line-height:36px;">{{templateDataBack.isEffect?'启用':'禁用'}}</span>
              </div>
            </div>
          </p-panel>
        </div>
        <!-- 报价模板穿梭器 -->
        <p-dialog header="选择报价模板" [(visible)]="W001" modal="modal" width="800" [responsive]="true">
          <div>
            <p-pickList [source]="filesTree" [target]="targetCars" sourceHeader="备选值" [showSourceControls]="false" [showTargetControls]="false"
              targetHeader="已选中" [responsive]="true" filterBy="label" dragdrop="true" dragdropScope="cars" sourceFilterPlaceholder="请输入备选关键词"
              targetFilterPlaceholder="请输入选中关键词" [sourceStyle]="{'height':'300px'}" [targetStyle]="{'height':'300px'}">
              <ng-template let-car pTemplate="item">
                <div class="ui-helper-clearfix">
                  <div  class="ellipsis-td-2" style="font-size:14px;padding:5px 10px" title='{{car.name}}'>{{car.name}}</div>
                </div>
              </ng-template>
            </p-pickList>
          </div>
          <div class="text-center">
            <button pButton type="button" [label]="'保存'" (click)="saveTement()" class="btn btn-success m-btn-dialog"></button>
          </div>
        </p-dialog>
        <!--基本信息修改区域end-->

        <!--施工阶段展示区域-->
        <div [hidden]="constructionEditFlag" style="margin-top:20px;">
          <p-panel headerClass="bg-none" [blocked]="constructionBlocked" [showScroll]="false">
            <p-header>
              <div class="text-right p-6-0">
                <span class="border-l-1a8fe8 p-l-8 pull-left m-t-8">施工阶段</span>
                <button pButton type="button" (click)="update('stage')" data-table="stage" label="编辑" class="btn-secondary"></button>
              </div>
            </p-header>
            <div class="table-row ">
              <div class="table-cell text-right p-l-25 width-120 i-h">
                施工阶段：
              </div>
              <div class="table-cell">
              </div>
            </div>
            <div class="table-row">
              <div class="table-cell"></div>
              <div class="table-cell ">
                <div style="width:500px; margin-left:-88px">
                  <p-dataTable [value]="constructionStageData" [headerCheckboxToggleAllPages]="true" [emptyMessage]="'没有搜到您想要的数据'">
                    <p-column *ngFor="let col of ConstructionStageCols" [field]='col.field' [header]='col.header' [hidden]="col.hidden" [style]="{'width':col.width}">
                      <ng-template let-index="rowIndex" let-data="rowData" pTemplate="body" *ngIf="col.tem">
                        <div *ngIf="col.field==='sort'">
                          {{index+1}}
                        </div>
                        <div *ngIf="col.field==='name'">
                          {{data.name}}
                        </div>
                      </ng-template>
                    </p-column>
                  </p-dataTable>
                </div>
              </div>
            </div>
          </p-panel>
        </div>
        <!--施工阶段展示区域end-->

        <!--施工阶段修改区域-->
        <div [hidden]="!constructionEditFlag" style="margin-top:20px;">
          <p-panel headerClass="bg-none" [blocked]="constructionBlocked" [showScroll]="false">
            <p-header>
              <div class="text-right p-6-0">
                <span class="border-l-1a8fe8 p-l-8 pull-left m-t-8">施工阶段</span>
                <button pButton type="button" (click)="stageSave();" label="保存" class="btn btn-secondary"></button>
                <button pButton type="button" (click)="back('stage')" label="取消" class="btn btn-secondary"></button>
              </div>
            </p-header>

            <div class="table-row ">
              <div class="table-cell text-right  p-required p-l-25 width-120">
                施工阶段：
              </div>
              <div class="table-cell">
                <button pButton type="button" (click)="addConstructionStage()" data-table="stage" label="添加" class="btn btn-primary"></button>
                <p-message *ngIf="addConstructionStageError" severity="error" [text]="addConstructionStageError"></p-message>
              </div>
            </div>
            <div class="table-row">
              <div class="table-cell"></div>
              <div class="table-cell ">
                <div style="width:500px; margin-left:-88px">
                  <p-dataTable [value]="constructionStageOperationData" [editable]="true" [totalRecords]="totalRecords" [headerCheckboxToggleAllPages]="true">
                    <p-column *ngFor="let col of ConstructionStageCols" [editable]="col.editable" [field]='col.field' [header]='col.header' [hidden]="col.hidden"
                      [style]="{'width':col.width}">
                      <ng-template pTemplate="header" *ngIf="col.required">
                        <div *ngIf="col.field === 'name'" class="p-required required">
                          {{col.header}}
                        </div>
                      </ng-template>
                      <ng-template let-index="rowIndex" let-data="rowData" pTemplate="body" *ngIf="col.tem">
                        <div *ngIf="col.field==='sort'">
                          {{index+1}}
                        </div>
                        <div *ngIf="col.field==='name'">
                          <div [class.p-input-error]="checkName(data.name)" class="flex-td" [pTooltip]="checkIsNull(data.name) " errorTip="true" tooltipPosition="top">
                            {{data.name}}
                          </div>
                        </div>
                        <div *ngIf="col.field === 'operation'">
                          <span class="move" (click)="removeConstruction(data)">删除</span>
                          <span class="move" (click)="moveUpConstruction(data,index)">上移</span>
                          <span class="move" (click)="moveDownConstruction(data,index)">下移</span>
                        </div>
                      </ng-template>
                      <ng-template let-index="rowIndex" let-data="rowData" pTemplate="editor" *ngIf="col.tem">
                        <div *ngIf="col.field === 'name'">
                          <input pInputText class="p-input" name="name" required [(ngModel)]="data.name">
                        </div>
                      </ng-template>
                    </p-column>
                  </p-dataTable>
                </div>
              </div>
            </div>
          </p-panel>
        </div>
        <!--施工阶段修改区域end-->

        <!--验收项展示区域-->
        <div [hidden]="acceptanceItemEditFlag" style="margin-top:20px;">
          <p-panel headerClass="bg-none" [blocked]="acceptanceItemBlocked" [showScroll]="false">
            <p-header>
              <div class="text-right p-6-0">
                <span class="border-l-1a8fe8 p-l-8 pull-left m-t-8">验收项</span>
                <button pButton type="button" (click)="update('check')" label="编辑" class="btn-secondary"></button>
              </div>
            </p-header>
            <div class="table-row">
              <div class="table-cell text-right p-l-25 width-120 i-h">
                验收项：
              </div>
              <div class="table-cell">
              </div>
            </div>
            <div class="table-row">
              <div class="table-cell"></div>
              <div class="table-cell ">
                <div style="width:500px; margin-left:-88px">
                  <p-dataTable [value]="acceptanceItemData" [headerCheckboxToggleAllPages]="true" [emptyMessage]="'没有搜到您想要的数据'">
                    <p-column *ngFor="let col of acceptanceItemStageCols" [field]='col.field' [header]='col.header' [hidden]="col.hidden" [style]="{'width':col.width}">
                      <ng-template let-index="rowIndex" let-data="rowData" pTemplate="body" *ngIf="col.tem">
                        <div *ngIf="col.field==='sort'">
                          {{index+1}}
                        </div>
                        <div *ngIf="col.field==='name'">
                          {{data.name}}
                        </div>
                      </ng-template>
                    </p-column>
                  </p-dataTable>
                </div>
              </div>
            </div>

          </p-panel>
        </div>
        <!--验收项展示区域end-->

        <!--验收项修改区域-->
        <div [hidden]="!acceptanceItemEditFlag" style="margin-top:20px;">
          <p-panel headerClass="bg-none" [blocked]="acceptanceItemBlocked" [showScroll]="false">
            <p-header>
              <div class="text-right p-6-0">
                <span class="border-l-1a8fe8 p-l-8 pull-left m-t-8">验收项</span>
                <button pButton type="button" (click)="checkSave();" label="保存" class="btn btn-secondary"></button>
                <button pButton type="button" (click)="back('check')" label="取消" class="btn btn-secondary"></button>
              </div>
            </p-header>
            <div class="table-row ">
              <div class="table-cell text-right  p-required p-l-25 width-120">
                验收项：
              </div>
              <div class="table-cell">
                <button pButton type="button" (click)="checkChoiceFlags()" label="选择" class="btn btn-success"></button>
                <p-message *ngIf="checkChoiceFlagsError" severity="error" [text]="checkChoiceFlagsError"></p-message>
                <p-dialog header="选择验收项" (onHide)="acceptanceItemSelectedData=[];selectedIsCustomConfirm=[];selectedIsCustomDiscuss=[];keyWord=[]"
                  [(visible)]="checkChoiceFlag" modal="modal" width="800" [responsive]="true">
                  <div class="p-8-0">
                    <div class=" m-r-15 inline-block">
                      <p-dropdown placeholder="是否客户确认" styleClass="width-200 m-r-30" [options]="isCustomConfirm" [(ngModel)]="selectedIsCustomConfirm"
                        optionLabel="name" (onChange)='searchCheck()'></p-dropdown>
                    </div>
                    <div class="m-r-15 inline-block">
                      <p-dropdown placeholder="是否客户评价" styleClass="width-200 m-r-30" [options]="isCustomDiscuss" [(ngModel)]="selectedIsCustomDiscuss"
                        optionLabel="name" (onChange)='searchCheck()'></p-dropdown>
                    </div>
                    <div class="width-250 relative pull-right">
                      <input type="text" pInputText class="width-full p-input p-r-28" [(ngModel)]="keyWord" (keyUp.enter)="searchCheck()" placeholder="名称/编号">
                      <span class="icon-search-right" (click)="searchCheck()"></span>
                    </div>
                  </div>

                  <p-dataTable [value]="checkChoiceData" [totalRecords]="totalRecords" [style]="{marginTop:'12px'}" [lazy]="true" (onPage)="onPage($event)"
                    scrollable="true" scrollHeight="260px" [paginator]="true" [(selection)]="acceptanceItemSelectedData" [headerCheckboxToggleAllPages]="true">
                    <p-column [style]="{'width':'38px'}" selectionMode="multiple"></p-column>
                    <p-column *ngFor="let col of checkChoiceCols" [field]='col.field' [header]='col.header'>
                      <ng-template let-index="rowIndex" let-data="rowData" pTemplate="body" *ngIf="col.tem">
                        <div *ngIf="col.field === 'code'">
                          {{data.code}}
                        </div>
                        <div *ngIf="col.field === 'isWarning'">
                          {{data.isWarning?'是':'否'}}
                        </div>
                        <div *ngIf="col.field === 'isCustomDiscuss'">
                          {{data.isCustomDiscuss?'是':'否'}}
                        </div>
                        <div *ngIf="col.field === 'isCustomBack'">
                          {{data.isCustomBack?'是':'否'}}
                        </div>
                        <div *ngIf="col.field === 'isCustomConfirm'">
                          {{data.isCustomConfirm?'是':'否'}}
                        </div>
                      </ng-template>
                    </p-column>
                  </p-dataTable>
                  <div class="text-center">
                    <button pButton type="button" [label]="'保存'" (click)="addAcceptanceItem()" class="btn btn-success m-btn-dialog"></button>
                  </div>
                </p-dialog>
              </div>
            </div>
            <div class="table-row">
              <div class="table-cell"></div>
              <div class="table-cell ">
                <div style="width:500px; margin-left:-76px">
                  <p-dataTable [value]="acceptanceItemOperationData" [headerCheckboxToggleAllPages]="true" [emptyMessage]="'没有搜到您想要的数据'">
                    <p-column *ngFor="let col of acceptanceItemStageCols" [field]='col.field' [header]='col.header' [hidden]="col.hidden" [style]="{'width':col.width}">
                      <ng-template pTemplate="header" *ngIf="col.required">
                        <div *ngIf="col.field === 'name'" class="p-required required">
                          {{col.header}}
                        </div>
                      </ng-template>
                      <ng-template let-index="rowIndex" let-data="rowData" pTemplate="body" *ngIf="col.tem">
                        <div *ngIf="col.field==='sort'">
                          {{index+1}}
                        </div>
                        <div *ngIf="col.field==='name'">
                          {{data.name}}
                        </div>
                        <div *ngIf="col.field === 'operation'">
                          <span class="move" (click)="removeAcceptanceItem(data)">删除</span>
                          <span class="move" (click)="moveUpAcceptanceItem(data,index)">上移</span>
                          <span class="move" (click)="moveDownAcceptanceItem(data,index)">下移</span>
                        </div>
                      </ng-template>
                      <!-- <ng-template let-index="rowIndex" let-data="rowData" pTemplate="editor" *ngIf="col.tem">
                                                <div *ngIf="col.field === 'name'">
                                                    <input pInputText class="p-input" name="name" required [(ngModel)]="data.name">
                                                </div>
                                            </ng-template> -->
                    </p-column>
                  </p-dataTable>
                </div>
              </div>
            </div>
          </p-panel>
        </div>
        <!--验收项修改区域end-->

      </p-tabPanel>

      <p-tabPanel header="物料配送" [type]="1">
        <div *ngFor="let item of materialData; let i = index">
          <!--物料配送展示区域-->
          <div [hidden]="item['materialEditFlag'+item.id]" [ngClass]="i!=0?'p-t-20':''">
            <p-panel headerClass="bg-none" [blocked]="item['materialBlocked'+item.id]" [showScroll]="false">
              <p-header>
                <div class="text-right p-6-0">
                  <span class="border-l-1a8fe8 p-l-8 pull-left m-t-8">{{item['name']}}</span>
                  <button pButton type="button" (click)="update('materialList',item.id)" label="编辑" class="btn-secondary"></button>
                </div>
              </p-header>
              <span class="color-b1b1b1">
                注：物料配送的起始时间为派单当天，例如第3天到场，即为派单后的第3天到场；提前1天提报，即为到场的前一天提报任务启动
              </span>
              <div class="table-row">
                <div class="table-cell text-right p-l-25 width-120">
                  第几天到场：
                </div>
                <div class="table-cell i-h">
                  {{item.daysOfArrive}}天
                </div>
              </div>

              <div class="table-row">
                <div class="table-cell text-right p-l-25 width-120">
                  提前启动天数：
                </div>
                <div class="table-cell i-h">
                  {{item.earlyStartDays}}天
                </div>
              </div>
              <div class="table-row">
                <div class="table-cell text-right p-l-25 width-120">
                  是否人工提报：
                </div>
                <div class="table-cell i-h">
                  {{item.isAutoReport?'是':'否'}}
                </div>
              </div>

              <div class="table-row">
                <div class="table-cell text-right p-l-25 width-120">
                  自动提报天数：
                </div>
                <div class="table-cell i-h">
                  {{item.autoReportDays}}天
                </div>
              </div>
              <div class="table-row">
                <div class="table-cell text-right p-l-25 width-120">
                  最大供货周期：
                </div>
                <div class="table-cell i-h">
                  {{item.maxSupplyCycle}}天
                </div>
              </div>
              <div class="table-row">
                <div class="table-cell text-right p-l-25 i-h width-120">
                  速美物料组：
                </div>
                <div class="table-cell">
                  <div class=" ui-g" style="margin-left:-5px;">
                    <div *ngFor="let i of item?.productDetailList">
                      <div class="p-15">
                        <p-label [label]='i.name' [showClose]="false" styleColor="#1a91eb"></p-label>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </p-panel>
          </div>
          <!--物料配送展示区域end-->

          <!--物料配送修改区域-->
          <div [hidden]="!item['materialEditFlag'+item.id]" [ngClass]="i!=0?'p-t-20':''">
            <p-panel headerClass="bg-none" [blocked]="item['materialBlocked'+item.id]" [showScroll]="true">
              <p-header>
                <div class="text-right p-6-0">
                  <span class="border-l-1a8fe8 p-l-8 pull-left m-t-8">{{item['name']}}</span>
                  <button pButton type="button" (click)="saveMaterial(item.id);" label="保存" class="btn btn-secondary"></button>
                  <button pButton type="button" (click)="back('materialList',item.id)" label="取消" class="btn btn-secondary"></button>
                </div>
              </p-header>
              <span class="color-b1b1b1">
                注：物料配送的起始时间为派单当天，例如第3天到场，即为派单后的第3天到场；提前1天提报，即为到场的前一天提报任务启动
              </span>

              <div class="table-row">
                <div class="table-cell text-right p-l-25 p-required width-120">
                  第几天到场：
                </div>
                <div class="table-cell ">
                  <div class="icon-text i-b" data-text="天">
                    <p-spinner name="soinner" size="30" required maxlength="6" styleClass="p-spinner width-142" [(ngModel)]="materialOperationtData[i].daysOfArrive"
                      [step]="1" [min]="0" [max]="99999" (onBlur)="checkDaysOfArrive(materialOperationtData[i].daysOfArrive,materialOperationtData[i].earlyStartDays);"></p-spinner>
                  </div>
                  <p-message *ngIf="daysOfArriveError" severity="error" [text]="daysOfArriveError"></p-message>
                </div>
              </div>

              <div class="table-row">
                <div class="table-cell text-right p-l-25 p-required width-120">
                  提前启动天数：
                </div>
                <div class="table-cell">
                  <div class="icon-text i-b" data-text="天">
                    <p-spinner name="earlyStartDays" size="30" styleClass="p-spinner  width-142" [(ngModel)]="materialOperationtData[i].earlyStartDays"
                      (onBlur)="checkEarlyStartDays(materialOperationtData[i].earlyStartDays,materialOperationtData[i].daysOfArrive,materialOperationtData[i].autoReportDays,materialOperationtData[i].maxSupplyCycle);"
                      [step]="1" maxlength="6" [min]="0" [max]="99999"></p-spinner>
                  </div>
                  <p-message *ngIf="earlyStartDaysError" severity="error" [text]="earlyStartDaysError"></p-message>
                  <span class="color-b1b1b1">
                    &nbsp;&nbsp; 注：提前启动天数
                    <第几天到场，且提前启动天数>=自动提报天数+最大供货周期 </span>
                </div>
              </div>

              <div class="table-row">
                <div class="table-cell text-right p-l-25 p-required width-120">
                  是否人工提报：
                </div>
                <div class="table-cell">
                  <p-dropdown required name="isAutoReport" [options]="isAutoReport" dataKey="id" placeholder="请选择是否人工提报" [style]="{width: '220px'}"
                    [(ngModel)]="selectedIsAutoReport" (onChange)="isAutoReportCh(materialOperationtData[i].earlyStartDays,materialOperationtData[i].daysOfArrive,materialOperationtData[i].autoReportDays,materialOperationtData[i].maxSupplyCycle)"
                    optionLabel="name" dataKey="code"></p-dropdown>
                  <p-message *ngIf="isAutoReportError" severity="error" [text]="isAutoReportError"></p-message>
                  <span class="color-b1b1b1">
                    &nbsp;&nbsp; 注：选择是，则需要手动提报发货，若超过自动提报天数未操作，则自动提报；若选择否，则直接自动提报
                  </span>
                </div>
              </div>

              <div class="table-row">
                <div class="table-cell text-right p-l-25 p-required width-120">
                  自动提报天数：
                </div>
                <div class="table-cell">
                  <div class="icon-text i-b" data-text="天">
                    <p-spinner name="" size="30" required maxlength="6" styleClass="p-spinner  width-142" [(ngModel)]="materialOperationtData[i].autoReportDays"
                      [disabled]="selectedIsAutoReport?.code === false" [step]="1" [min]="0" [max]="99999" (onBlur)="checkAutoReportDays(materialOperationtData[i].earlyStartDays,materialOperationtData[i].autoReportDays,materialOperationtData[i].maxSupplyCycle);"></p-spinner>
                  </div>
                  <p-message *ngIf="autoReportDaysError" severity="error" [text]="autoReportDaysError"></p-message>
                  <span class="color-b1b1b1">
                    &nbsp;&nbsp; 注：自动提报天数
                    <=提前启动天数-最大供货周期 </span>
                </div>
              </div>

              <div class="table-row">
                <div class="table-cell text-right p-l-25 p-required width-120">
                  最大供货周期：
                </div>
                <div class="table-cell">
                  <div class="icon-text i-b" data-text="天">
                    <p-spinner name="" size="30" required maxlength="6" styleClass="p-spinner  width-142" [(ngModel)]="materialOperationtData[i].maxSupplyCycle"
                      [step]="1" [min]="0" [max]="99999" (onBlur)="checkMaxSupplyCycle(materialOperationtData[i].earlyStartDays,materialOperationtData[i].autoReportDays,materialOperationtData[i].maxSupplyCycle);"></p-spinner>
                  </div>
                  <p-message *ngIf="maxSupplyCycleError" severity="error" [text]="maxSupplyCycleError"></p-message>
                  <span class="color-b1b1b1">
                    &nbsp;&nbsp; 注：最大供货周期
                    <=提前启动天数-自动提报天数 </span>
                </div>
              </div>

              <div class="table-row">
                <div class="table-cell text-right p-l-25 p-required width-120">
                  配送物料组：
                </div>
                <div class="table-cell">
                  <button pButton type="button" (click)="selectMateria();" label="选择" class="btn btn-success"></button>
                  <p-message *ngIf="materialListError" severity="error" [text]="materialListError"></p-message>
                </div>
              </div>

              <div class="table-row">
                <div class="table-cell text-right p-l-25 width-120">
                </div>
                <div class="ui-g">
                  <div *ngFor="let materialList of materialOperationtData[i].productDetailList;" class="p-15 ">
                    <p-label [label]='materialList.name' [showClose]="true" (onClose)="removeMaterial(materialList,item.id)"></p-label>
                  </div>
                </div>
              </div>

            </p-panel>
          </div>
          <!--物料配送修改区域end-->
        </div>
        <!--选择物料组弹窗-->
        <p-dialog header="选择物料组" (onHide)="selectedMaterialTree=[]" [(visible)]="MaterialDialog" modal="modal" width="700" [responsive]="true">
          <div class="text-center">
            <p-tree [value]="materialTree" selectionMode="checkbox" [(selection)]="selectedMaterialTree" styleClass='materialTree'>
              <!-- <ng-template let-node pTemplate="default">
                                <input [(ngModel)]="node.text" type="text" style="width:100%">
                            </ng-template> -->
            </p-tree>
            <div class="inline-block">
              <div class="table-row">
                <div class="table-cell text-right p-l-25"></div>
                <div class="table-cell text-left">
                  <button pButton type="button" (click)="saveSelectedMaterial(materialEditStageId)" [label]="'保存'" class="btn btn-success m-btn-dialog"></button>
                </div>
              </div>
            </div>
          </div>
        </p-dialog>
        <!--选择物料组弹窗end-->
      </p-tabPanel>

      <p-tabPanel header="施工排期" [type]="1">
        <div [hidden]="constructionScheduleFlag">
          <div class="text-right p-b-12">
            <button pButton type="button" (click)="update('construction')" label="编辑" class="btn-secondary"></button>
          </div>
          <p-dataTable [value]="constructionScheduleData" scrollable="true" [headerCheckboxToggleAllPages]="true" [emptyMessage]="'没有搜到您想要的数据'">
            <p-column *ngFor="let col of constructionSchedule" [field]='col.field' [header]='col.header' [hidden]="col.hidden" [style]="{'width':col.width}">
              <ng-template let-index="rowIndex" let-data="rowData" pTemplate="body" *ngIf="col.tem">
                <div *ngIf="col.field==='sort'">
                  {{index+1}}
                </div>
                <div *ngIf="col.field==='name'">
                  {{data.name}}
                </div>
                <div *ngIf="col.field==='constructDays'">
                  {{data.constructDays}}
                </div>
                <div *ngIf="col.field==='isRequestPassItem'">
                  {{data.isRequestOption?.name}}
                </div>
                <div *ngIf="col.field==='sortNumOfBatch'">
                  {{data.sortNumOfBatchOption?.name}}
                </div>
                <div *ngIf="col.field==='needPayCode'">
                  {{data.needPayOption?.name}}
                </div>
                <div *ngIf="col.field==='triggerPayCode'">
                  {{data.triggerPayOption?.name}}
                </div>
              </ng-template>
            </p-column>
          </p-dataTable>
        </div>

        <div [hidden]="!constructionScheduleFlag">
          <div class="text-right p-6-0">
            <button pButton type="button" (click)="scheduleSave();" label="保存" class="btn btn-secondary"></button>
            <button pButton type="button" (click)="back('construction')" label="取消" class="btn btn-secondary"></button>
          </div>
          <p-dataTable [value]="constructionScheduleOperationtData" scrollable="true" [headerCheckboxToggleAllPages]="true" [emptyMessage]="'没有搜到您想要的数据'"
            editable="true">
            <p-column *ngFor="let col of constructionScheduleEditHead" [field]='col.field' [editable]="col.editable" [header]='col.header'
              [hidden]="col.hidden" [style]="{'width':col.width}">
              <ng-template pTemplate="header" *ngIf="col.required">
                <div *ngIf="col.field === 'constructDays'" class="p-required required">
                  {{col.header}}
                </div>
                <div *ngIf="col.field === 'isRequestPassItem'" class="p-required required">
                  {{col.header}}
                </div>
              </ng-template>

              <ng-template let-index="rowIndex" let-data="rowData" pTemplate="body" *ngIf="col.tem">

                <div *ngIf="col.field==='sort'">
                  {{index+1}}
                </div>
                <div *ngIf="col.field==='name'">
                  {{data.name}}
                </div>
                <div *ngIf="col.field==='constructDays'">
                  <div [class.p-input-error]="checkDays(data.constructDays)" class="flex-td" [pTooltip]="checkDaysIsNull(data.constructDays) "
                    errorTip="true" tooltipPosition="top">
                    {{data.constructDays}}
                  </div>
                </div>
                <div *ngIf="col.field==='isRequestPassItem'">
                  {{data.isRequestOption?.name}}
                </div>
                <div *ngIf="col.field==='sortNumOfBatch'">
                  {{data.sortNumOfBatchOption?.name}}
                </div>
                <div *ngIf="col.field==='needPayCode'">
                  {{data.needPayOption?.name}}
                </div>
                <div *ngIf="col.field==='triggerPayCode'">
                  {{data.triggerPayOption?.name}}
                </div>

                <div *ngIf="col.field === 'operation'">
                  <span class="move" (click)="moveUpSchedule(data,index)">上移</span>
                  <span class="move" (click)="moveDownSchedule(data,index)">下移</span>
                </div>
              </ng-template>
              <ng-template let-index="rowIndex" let-data="rowData" pTemplate="editor" *ngIf="col.tem">
                <div *ngIf="col.field === 'constructDays'">
                  <input pInputText class="p-input" name="constructDays" maxlength="5" required [(ngModel)]="data.constructDays" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)"
                    onblur="this.v();">
                </div>
                <div *ngIf="col.field === 'isRequestPassItem'">
                  <p-dropdown name="isRequestPassItem" placeholder [(ngModel)]="data['isRequestOption']" optionLabel="name" dataKey="code"
                    [options]="isRequestPassItemOptions" [style]="{'width':'100%'} " placeholder="请选择是否必过" appendTo="body"
                    required></p-dropdown>
                </div>
                <div *ngIf="col.field === 'sortNumOfBatch'">
                  <p-dropdown name="sortNumOfBatch" placeholder="请选择必到场批次" [(ngModel)]="data['sortNumOfBatchOption']" optionLabel="name" dataKey="id"
                    [options]="sortNumOfBatchOptions" [style]="{'width':'100%'}" appendTo="body" required></p-dropdown>
                </div>
                <div *ngIf="col.field === 'needPayCode'">
                  <p-dropdown name="needPaycode" placeholder="请选择必交款项" [(ngModel)]="data['needPayOption']" optionLabel="name" dataKey="id" [options]="paymentTemplateOptions"
                    [style]="{'width':'100%'}" appendTo="body" required></p-dropdown>
                </div>
                <div *ngIf="col.field === 'triggerPayCode'">
                  <p-dropdown name="triggerPayCode" placeholder="请选择触发交款" [(ngModel)]="data['triggerPayOption']" optionLabel="name" dataKey="id"
                    [options]="paymentTemplateOptions" [style]="{'width':'100%'}" appendTo="body" required></p-dropdown>
                </div>
              </ng-template>
            </p-column>
          </p-dataTable>
        </div>

      </p-tabPanel>

      <p-tabPanel header="施工阶段设置" [type]="1">
        <!--各个施工阶段数据展示-->
        <div *ngFor="let item of stageData; let i = index">
          <!--施工阶段展示区域-->
          <div [hidden]="item['stageEditFlag'+item.id]" [ngClass]="i!=0?'p-t-20':''">
            <p-panel headerClass="bg-none" [blocked]="item['stageBlocked'+item.id]" [showScroll]="false">
              <p-header>
                <div class="text-right p-6-0">
                  <span class="border-l-1a8fe8 p-l-8 pull-left m-t-8">{{item['name']}}</span>
                  <button pButton type="button" (click)="update('stageList',item)" label="编辑" class="btn-secondary"></button>
                </div>
              </p-header>
              <div class="table-row">
                <div class="table-cell text-right p-l-25 width-120 i-h">
                  阶段施工时长：
                </div>
                <div class="table-cell">
                  {{item['constructDays']}}&nbsp;天
                </div>
              </div>
              <div class="table-row">
                <div class="table-cell text-right p-l-25 width-120 i-h">
                  节点：
                </div>
                <div class="table-cell">
                </div>
              </div>
              <div class="table-row">
                <div class="table-cell"></div>
                <div class="table-cell ">
                  <div style="width:500px; margin-left:-76px">
                    <p-dataTable [value]="stageNodeListOperationtData[i].data" [loading]="loading" [headerCheckboxToggleAllPages]="true" [emptyMessage]="'没有搜到您想要的数据'">
                      <p-column *ngFor="let col of stageNodeListHead" [field]='col.field' [header]='col.header' [hidden]="col.hidden" [style]="{'width':col.width}">
                        <ng-template let-index="rowIndex" let-data="rowData" pTemplate="body" *ngIf="col.tem">
                          <div *ngIf="col.field==='sort'">
                            {{index+1}}
                          </div>
                          <div *ngIf="col.field==='name'">
                            {{data.name}}
                          </div>
                          <div *ngIf="col.field==='daysOfStart'">
                            {{data.daysOfStart}}
                          </div>
                          <div *ngIf="col.field==='constructDays'">
                            {{data.constructDays}}
                          </div>
                        </ng-template>
                      </p-column>
                    </p-dataTable>
                  </div>
                </div>
              </div>
            </p-panel>
          </div>
          <!--施工阶段展示区域end-->

          <!--施工阶段修改区域-->
          <div [hidden]="!item['stageEditFlag'+item.id]" [ngClass]="i!=0?'p-t-20':''">
            <p-panel headerClass="bg-none" [blocked]="item['stageBlocked'+item.id]" [showScroll]="false">
              <p-header>
                <div class="text-right p-6-0">
                  <span class="border-l-1a8fe8 p-l-8 pull-left m-t-8">{{item['name']}}</span>
                  <button pButton type="button" (click)="saveStageNodes(item.id,item.constructDays);" label="保存" class="btn btn-secondary"></button>
                  <button pButton type="button" (click)="back('stageList',item.id)" label="取消" class="btn btn-secondary"></button>
                </div>
              </p-header>
              <div class="table-row">
                <div class="table-cell text-right p-l-25 width-120 i-h">
                  阶段施工时长：
                </div>
                <div class="table-cell">
                  {{item['constructDays']}}&nbsp;天
                </div>
              </div>
              <div class="table-row ">
                <div class="table-cell text-right  p-required p-l-25 width-120">
                  节点：
                </div>
                <div class="table-cell">
                  <button pButton type="button" (click)="selectNodes()" label="选择节点" class="btn btn-success"></button>
                  <p-message *ngIf="selectNodesError" severity="error" [text]="selectNodesError"></p-message>
                </div>
              </div>
              <div class="table-row">
                <div class="table-cell"></div>
                <div class="table-cell ">
                  <div style="width:500px; margin-left:-76px">
                    <p-dataTable [value]="stageNodeListOperationtData[i].data" editable="true" [loading]="loading" [headerCheckboxToggleAllPages]="true"
                      [emptyMessage]="'没有搜到您想要的数据'">
                      <p-column *ngFor="let col of stageNodeListEditHead" [editable]="col.editable" [field]='col.field' [header]='col.header' [hidden]="col.hidden"
                        [style]="{'width':col.width}">

                        <ng-template pTemplate="header" *ngIf="col.required">
                          <div *ngIf="col.field === 'constructDays'" class="p-required required">
                            {{col.header}}
                          </div>
                          <div *ngIf="col.field === 'daysOfStart'" class="p-required required">
                            {{col.header}}
                          </div>
                        </ng-template>
                        <ng-template let-index="rowIndex" let-data="rowData" pTemplate="body" *ngIf="col.tem">
                          <div *ngIf="col.field==='sort'">
                            {{index+1}}
                          </div>
                          <div *ngIf="col.field==='name'">
                            {{data.name}}
                          </div>
                          <div *ngIf="col.field==='daysOfStart'">
                            <div [class.p-input-error]="checkDaysOfStart(data.daysOfStart,item['constructDays'])" class="flex-td" [pTooltip]="checkDaysOfStartIsNull(data.daysOfStart,item['constructDays']) "
                              errorTip="true" tooltipPosition="top">
                              {{data.daysOfStart}}
                            </div>
                          </div>
                          <div *ngIf="col.field==='constructDays'">
                            <div [class.p-input-error]="checkConstructDays(data.selectedConstructDays?.value)" class="flex-td" [pTooltip]="checkConstructDaysIsNull(data.selectedConstructDays?.value) "
                              errorTip="true" tooltipPosition="top">
                              {{data.selectedConstructDays?.value}}
                            </div>
                          </div>
                          <div *ngIf="col.field === 'operation'">
                            <span class="move" (click)="removeStageItem(data,item.id)">删除</span>
                            <span class="move" (click)="upStageItem(data,index,item.id)">上移</span>
                            <span class="move" (click)="downStageItem(data,index,item.id)">下移</span>
                          </div>
                        </ng-template>
                        <ng-template let-index="rowIndex" let-data="rowData" pTemplate="editor" *ngIf="col.tem">
                          <div *ngIf="col.field === 'name'">
                            <input pInputText class="p-input" name="name" required [(ngModel)]="data.name">
                          </div>
                          <div *ngIf="col.field === 'daysOfStart'">
                            <input pInputText class="p-input" name="daysOfStart" maxlength="5" required [(ngModel)]="data.daysOfStart" (focus)="saveEditDayOfStart(data.daysOfStart)"
                              (keyup)="validateDayOfStart(data)" (blur)="validateDayOfStart(data);calculate(data,item['constructDays'])">
                            <!-- <p-dropdown name="daysOfStart" placeholder="请选择施工时长" [(ngModel)]="data.daysOfStart" optionLabel="value" dataKey="code"
                                                                    [options]="daysOfStartOptions" [style]="{'width':'100%'}" appendTo="body" required></p-dropdown> -->
                          </div>
                          <div *ngIf="col.field === 'constructDays'">
                            <!-- <input pInputText class="p-input" name="constructDays" maxlength="5" required [(ngModel)]="data.constructDays" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)"
                                                            onblur="this.v();"> -->
                            <p-dropdown name="constructDays" placeholder="请选择施工时长" [(ngModel)]="data.selectedConstructDays" optionLabel="value" dataKey="value"
                              [options]="data.constructDaysOptions" [style]="{'width':'100%'}" appendTo="body" required></p-dropdown>
                          </div>
                        </ng-template>
                      </p-column>
                    </p-dataTable>
                  </div>
                </div>
              </div>
            </p-panel>
          </div>
          <!--施工阶段修改区域end-->
        </div>
        <!--各个施工阶段数据展示end-->

        <!--阶段设置 节点添加弹框-->
        <p-dialog header="选择节点" (onHide)="stageSelectedCheck=[];selectedIsWarning=[];selectedIsSupervisorConfirm=[];keyWordNode=[]"
          [(visible)]="stagesSelectedCheckFlag" modal="modal" width="800" [responsive]="true">
          <div class="p-8-0">
            <div class="m-r-15 inline-block">
              <p-dropdown placeholder="请选择预警状态" styleClass="width-200 m-r-30" [options]="isWarning" [(ngModel)]="selectedIsWarning" optionLabel="name"
                (onChange)='searchNode()'></p-dropdown>
            </div>
            <div class="m-r-15 inline-block">
              <p-dropdown placeholder="是否需要监理确认" styleClass="width-200 m-r-30" [options]="isSupervisorConfirm" [(ngModel)]="selectedIsSupervisorConfirm"
                optionLabel="name" (onChange)='searchNode()'></p-dropdown>
            </div>
            <div class="width-250 relative pull-right">
              <input type="text" pInputText class="width-full p-input p-r-28" [(ngModel)]="keyWordNode" (keyUp.enter)="searchNode()" placeholder="名称/编号/定额号">
              <span class="icon-search-right" (click)="searchNode()"></span>
            </div>
          </div>
          <p-dataTable [value]="checkChoiceData1" [style]="{marginTop:'12px'}" [totalRecords]="totalRecordsForNodes" [lazy]="true"
            (onPage)="onPage($event)" scrollable="true" scrollHeight="260px" [paginator]="true" [(selection)]="stageSelectedCheck"
            [headerCheckboxToggleAllPages]="true">
            <!-- <p-header>
                                <button pButton type="button" (click)="addCheckToStage()" label="确定" class="btn btn-secondary"></button>
                            </p-header> -->
            <p-column [style]="{'width':'38px'}" selectionMode="multiple"></p-column>
            <p-column *ngFor="let col of nodesChoiceCols" [field]='col.field' [header]='col.header'>
              <ng-template let-index="rowIndex" let-data="rowData" pTemplate="body" *ngIf="col.tem">
                <div *ngIf="col.field === 'code'">
                  {{data.code}}
                </div>
                <div *ngIf="col.field === 'referenceMoneyLimitCodes'">
                  {{data.referenceMoneyLimitCodes}}
                </div>
                <div *ngIf="col.field === 'isWarning'">
                  {{data.isWarning?'是':'否'}}
                </div>
                <div *ngIf="col.field === 'isSupervisorConfirm'">
                  {{data.isSupervisorConfirm?'是':'否'}}
                </div>
              </ng-template>
            </p-column>
          </p-dataTable>
          <div class="text-center">
            <button pButton type="button" [label]="'保存'" (click)="addCheckToStage()" class="btn btn-success m-btn-dialog"></button>
          </div>
        </p-dialog>
        <!--阶段设置 节点添加弹框 end-->
      </p-tabPanel>

    </p-tabView>
  </div>
</div>
